package com.funtl.screw.codegen.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.funtl.screw.codegen.entity.GenConfig;
import com.funtl.screw.common.core.util.QueryRequest;

import java.util.Map;

/**
 * @author Lusifer
 * @since 2023/7/29
 */
public interface GeneratorService {

	/**
	 * 生成代码
	 */
	byte[] generatorCode(GenConfig genConfig);

	/**
	 * 分页查询表
	 */
	IPage<Map<String, Object>> getPage(QueryRequest queryRequest, String tableName, String name);

	/**
	 * 预览代码
	 */
	Map<String, Map<String, String>> previewCode(GenConfig genConfig);
}
